<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Pulog.Models.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EditCategory</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="categoryID">categoryID:</label>
                <label id="categoryID"><%=Model.categoryID %></label>
               <%-- <%= Html.TextBox("categoryID", Model.categoryID) %>--%>
                <%= Html.ValidationMessage("categoryID", "*") %>
            </p>
            <p>
                <label for="categoryName">categoryName:</label>
                <%= Html.TextBox("categoryName", Model.categoryName) %>
                <%= Html.ValidationMessage("categoryName", "*") %>
            </p>
            <p>
                <label for="categoryDesc">categoryDesc:</label>
                <%= Html.TextBox("categoryDesc", Model.categoryDesc) %>
                <%= Html.ValidationMessage("categoryDesc", "*") %>
            </p>
            <p>
                <label for="categoryOrder">categoryOrder:</label>
                <%= Html.TextBox("categoryOrder", Model.categoryOrder) %>
                <%= Html.ValidationMessage("categoryOrder", "*") %>
            </p>
            <p>
                <label for="categoryIcon">categoryIcon:</label>
                <%= Html.TextBox("categoryIcon", Model.categoryIcon) %>
                <%= Html.ValidationMessage("categoryIcon", "*") %>
            </p>
            <p>
                <label for="categoryURL">categoryURL:</label>
                <%= Html.TextBox("categoryURL", Model.categoryURL) %>
                <%= Html.ValidationMessage("categoryURL", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

